<%@page import="java.util.List"%>
<%@page import="com.itwill.ecom.boardQnAReply.BoardQnAReplyBeans"%>
<%@page import="com.itwill.ecom.boardQnAReply.BoardQnAReplyServiceImpl"%>

<%@page import="com.itwill.ecom.boardQnA.BoardQnABeans"%>
<%@page import="org.springframework.web.context.support.WebApplicationContextUtils"%>
<%@page import="org.springframework.web.context.WebApplicationContext"%>
<%@page import="com.itwill.ecom.boardQnA.BoardQnAServiceImpl"%>
<%@page import="com.itwill.ecom.boardQnA.BoardQnAService"%>

<%@page import="java.util.ArrayList"%>

<%@ page language="java" contentType="text/plain; charset=utf-8"
    pageEncoding="utf-8"%>
<%

/////////////// 리스트 호출 시 이곳에서 리스트 정보를 받아서 뿌려준다.. ////////////////
/////////////// 뿌려줄 정보는 게시판 no,nickname,title 정보만 보내준다 //////////////

WebApplicationContext webContext = WebApplicationContextUtils.getWebApplicationContext(application);
BoardQnAServiceImpl boardQnAService=(BoardQnAServiceImpl)webContext.getBean("boardQnAService");



int qnaboard_no = Integer.parseInt(request.getParameter("qnaboard_no").trim());
//System.out.println(qnaboard_no);

String method = request.getMethod();
System.out.println("*********jQuery Ajax요청정보*********");
System.out.println("0.jQuery Ajax요청URL    :" + request.getRequestURI());
System.out.println("1.jQuery Ajax요청방식    :" + method);
//System.out.println("2.jQuery Ajax요청파라메타:" +qnaboard_no);
System.out.println("*************************************");


BoardQnABeans boardQnABeans=boardQnAService.getByNoBoardQnA(qnaboard_no);

%>


[


{

"qnaboard_no":"<%=boardQnABeans.getQnaboard_no()%>",
"qnaboard_date":"<%=boardQnABeans.getQnaboard_date()%>",
"qnaboard_id":"<%=boardQnABeans.getQnaboard_id()%>",
"qnaboard_content":"<%=boardQnABeans.getQnaboard_content()%>",
"qnaboard_nickname":"<%=boardQnABeans.getQnaboard_nickname()%>",
"qnaboard_no":"<%=boardQnABeans.getQnaboard_no()%>",
"qnaboard_title":"<%=boardQnABeans.getQnaboard_title()%>",
"qnaboard_group":"<%=boardQnABeans.getQnaboard_group()%>"

}


]






